<?php

include_once('services.common.php');

abstract class Service{
    
    //protected  $db = null;
	protected  $log = null;

	/*public function Service(){
		
		$this->log = Logger::getRootLogger();
	}/**/
    
    /*
    protected function getDB(){
        if($this->db==null)
            $this->db  = DataService::getInstance();
        return($this->db);
    }
    */
    
    protected function getLogger(){
        if($this->log==null) $this->log  = Logger::getLogger(get_class($this));
        //if($this->log==null) $this->log  = Logger::getRootLogger();
        return($this->log);
    }

}

/*
class User extends Service {


    public function getFolders($id_uario=null){

    
    
        $result = $this->getDB()->getAll('sql_user_get_folder');
        
    }


}




CheckLogIn($username,$password){
    if($error==true)
        die();
    else
        $_SESSION['user'] = new User($userdata);
    
}

$usr->getFolders();

/**/
?>